/**
 * 整合所有子路由
 */
const user = require('./user-routes')
const permissions = require('./permission')
const Router = require('koa-router')

const router = new Router()

router.use('/users', user.routes(), user.allowedMethods())
router.use('/permissions', permissions.routes(), permissions.allowedMethods())

module.exports = router

